const mongoose = require('mongoose');

const FlashSaleActivitySchema = new mongoose.Schema({
  name: String,
  time: String, // '2021-03-02 ~ 2021-03-12'
  productCount: Number,
  status: String, // '进行中' | '未开始' | '已结束'
  online: String, // '上线' | '下线'
  createdAt: { type: Date, default: Date.now },
  updatedAt: { type: Date, default: Date.now }
});

const FlashSaleActivityModel = mongoose.model('FlashSaleActivity', FlashSaleActivitySchema, 'bkcone');

module.exports = FlashSaleActivityModel; 